package cn.javabb.common.util;

import cn.hutool.core.util.StrUtil;
import cn.javabb.common.constant.ConsVal;
import cn.javabb.common.exception.BizException;
import cn.javabb.project.entity.SysDataSource;
import com.alibaba.druid.pool.DruidDataSource;

public class DataSourceComposeUtils {

    /**
     * MySQL连接字符串模板
     */
    private static String URL_TEMPLATE_MYSQL = "jdbc:mysql://{}:{}/{}?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8";
    /**
     * Oracle的SID连接字符串模板
     */
    private static String URL_TEMPLATE_ORACLE_SID = "jdbc:oracle:thin:@{}:{}:{}";
    /**
     * Oracle的服务名连接字符串模板
     */
    private static String URL_TEMPLATE_ORACLE_SERVICE_NAME = "jdbc:oracle:thin:@{}:{}/{}";
    /**
     * SQL Server连接字符串模板
     */
    private static String URL_TEMPLATE_SQLSERVER = "jdbc:sqlserver://{}:{};SelectMethod=cursor;DatabaseName={}";
    /**
     * PostgreSQL连接字符串模板
     */
    private static String URL_TEMPLATE_POSTGRESQL = "jdbc:postgresql://{}:{}/{}?currentSchema={}&ssl=false";


}
